<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
       "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
  <meta http-equiv="content-type" content="text/html;charset=UTF-8" />
  <title><%= controller.controller_name %>: <%= controller.action_name %></title>
  <%= stylesheet_link_tag 'application' %>
</head>
<body class="<%= @controller.controller_name %>">

<div id="header">
  <h1>Method Acting</h1>

  <ul id="navigation">
    <% %w(actors users connections).each do |c| %>
      <li <%= 'class="current"' if controller.controller_name == c %>><%= link_to_unless_current c.capitalize, :controller => c, :action => 'index' %></li>
    <% end -%>
  </ul>
  <div class="clearfix"></div>
</div>


<div id="content">
  <% if flash[:notice] -%><p class="notice"><%= flash[:notice] %></p><% end -%>
  <%= yield %>
</div>

</body>
</html>
